<?php
/*
    Configuration for framework.
*/
define("FRAMEWORK_PATH", "./framework/");
define("HELPERS_PATH", FRAMEWORK_PATH . 'helpers/');
define("PLUGINS_PATH", FRAMEWORK_PATH . "plugins/");
define("CORE_PATH", FRAMEWORK_PATH . "core/");
define('FRAMEWORK_TEMPLATE_PATH', FRAMEWORK_PATH . 'templates/');
define('FRAMEWORK_TEMPLATE_LAYOUTS_PATH', FRAMEWORK_TEMPLATE_PATH . 'layouts/');
define("MODELS_PATH", "./includes/classes/");
define("VIEWS_PATH", "./includes/templates/");
define("LAYOUTS_PATH", VIEWS_PATH . "layouts/");
define("CONTROLLERS_PATH", "./includes/controllers/");

define("INCLUDE_FORM_HELPERS", false);
define("INCLUDE_FORMIFIER", true);
define("INCLUDE_HTML_HELPERS", true);
define("INCLUDE_FRAMEWORK_HELPERS", true);
define("INCLUDE_APPLICATION_HELPERS", true);
define('INCLUDE_GENERATORS', true);


/*
    Configuration for site.
*/

define("ROOT", '/php-f-devel/'); //if your app sits in the root then just set as '/'. If it sits in subdirectory then '/subdirectory/'
define("PUBLIC_PATH", ROOT . "public/");
define("JAVASCRIPT_PATH", PUBLIC_PATH . "javascript/");
define("STYLESHEET_PATH", PUBLIC_PATH . "style/");
define("IMAGES_PATH", STYLESHEET_PATH . "images/");
define("UPLOADS_PATH", "./public/uploads/");

define("IS_PRODUCTION", false); //if is set as true then you won't see any Warnings, Errors or Exceptions. You will be redirected to 404 or 500 page.
define("DEFAULT_TIMEZONE", "Europe/Riga");

define("AUTO_STRIPSLASHES", true); //if set to true, then every field form database will be run through stripslashes() function.

/*
    Configuration for routes
*/

define("DEFAULT_CONTROLLER", ""); //Name of the root model (accesible from ROOT)
/*
  * Use string index for subdirectory name and as value set array with model value and action value.
  * For example - if you want to access "Site" models "about" action from URL http://www.example.com/about then you shold set:
    * $maped_routes = array("about" => array("model" => "Site", "action" => "about"))
*/
$maped_routes = array(
    "advertisment" => array("model" => "home", "action" => "advertisment"),
    "about" => array("model" => "home", "action" => "about")
);

/*
    Configuration for database.
*/

define("DB_HOST", "localhost"); //Database server
define("DB_USERNAME", "root"); //Database user
define("DB_PASS", ""); //Database password
define("DB_NAME", ""); //Database name
?>